package com.bw.day03.adapter

import com.bw.base.net.entity.KanJiaEntity
import com.bw.base.net.entity.Product
import com.bw.day03.R
import com.bw.day03.util.GlideUtlis
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class KanJiaAdapter: BaseQuickAdapter<Product, BaseViewHolder>(R.layout.item_kanjia) {
    override fun convert(holder: BaseViewHolder, item: Product) {
        GlideUtlis.loadCorner(context,item.image,holder.getView(R.id.goods_image),20)
        holder.setText(R.id.goods_storeMessage,item.title)
        holder.setText(R.id.goods_price,"￥"+item.minPrice)
    }
}